/* components/home-chat/home-chat.wxss */
@import "/assets/iconfont/iconfont.wxss";
@import "/assets/common.less";
.home-chat-page{
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 100;
  top:0;
  left:0;
  //background: linear-gradient(179.97deg, rgba(113, 203, 255, 0.15) 0.03%, rgba(255, 255, 255, 0.15) 70.05%, rgba(255, 54, 48, 0.15) 115.9%);
}
.logo-box{
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 60rpx 0 40rpx;
  image{
    width: 406rpx;
    height: 116rpx;
  }
}
.input-box{
  position: relative;
  width: 94%;
  margin: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  .uploaded-files{
    height: 80rpx;
    margin-bottom: 6rpx;
    padding: 17rpx 12rpx;
    background: transparent;
    border-radius: 16rpx;
    box-sizing: border-box;
    z-index: 10;
    position: relative;
    overflow-x: auto;
    overflow-y: hidden;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 18rpx;
    .file-item{
      display: flex;
      align-items: center;
      background: #FFFFFF;
      border: 1rpx solid #71CBFF;
      border-radius: 12rpx;
      width: 103rpx;
      height: 46rpx;
      padding: 0;
      margin: 0;
      margin-right: 12rpx;
      box-sizing: border-box;
      position: relative;
      justify-content: center;
      flex-shrink: 0;
      .file-thumb{
        width: 32rpx;
        height: 32rpx;
        border-radius: 6rpx;
        background: #5C83E7;
        color: #fff;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 18rpx;
        text-transform: uppercase;
        flex-shrink: 0;
      }
      .file-info{
        display: none;
      }
      .remove-file{
        position: absolute;
        top: -8rpx;
        right: -8rpx;
        font-size: 24rpx;
        color: #f36754;
        width: 32rpx;
        height: 32rpx;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(255, 255, 255, 0.95);
        border-radius: 50%;
        z-index: 10;
        box-shadow: 0 2rpx 8rpx rgba(0, 0, 0, 0.15);
      }
    }
    .file-item:last-child{
      margin-right: 0;
    }
  }
  .input-content{
    position: relative;
    padding: 10rpx 100rpx 10rpx 20rpx;
    width: 100%;
    height: 104rpx;
    border: 1rpx solid #71CBFF;
    border-radius: 16rpx;
    box-sizing: border-box;
    background: #fff;
  }
  .input-textarea{
    width: 100%;
    height: 100%;
    font-size: 12px;
  }
  .upload-file-btn{
    position: absolute;
    z-index: 10;
    right: 100rpx;
    bottom: 10rpx;
    width: 64rpx;
    height: 64rpx;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    cursor: pointer;
    background: transparent;
    &::after{
      border: none;
    }
    .upload-icon{
      width: 40rpx;
      height: 40rpx;
      pointer-events: none;
    }
  }
  .send-btn{
    position: absolute;
    z-index: 1;
    right: 20rpx;
    bottom: 10rpx;
    width: 64rpx;
    height: 64rpx;
    border-radius: 64rpx;
    background: #5C83E7;
    display: flex;
    align-items: center;
    justify-content: center;
    .iconfont{
      color: #fff;
    }
    &.disabled{
      background: #ACACAC;
      color: #777777;
      .iconfont{
        color: #f4f4f4;
      }
    }
  }
  .pause-btn{
    background: #f36754;
  }
  .loading-box{
    //height: 184rpx;
    border-radius: 16rpx;
    z-index: 2;
  }
}
.condition-box{
  position: relative;
  width: 94%;
  margin: auto;
  display: flex;
  align-items: center;
  .select-btn+.select-btn{
    margin-left: 10rpx;
  }
}
.template-question-content{
  position: relative;
  width: 94%;
  margin: 60rpx auto 0;
  display: flex;
  flex-direction: column;
  gap: 40rpx;
  
  .template-box{
    position: relative;
    border: 1px solid #71CBFF;
    border-radius: 32rpx;
    overflow: hidden;
    background: #fff;
    
    .template-header{
      position: relative;
      display: flex;
      align-items: center;
      padding: 30rpx 40rpx;
      border-bottom: 1px solid #e4e7ed;
      font-size: 24rpx;
      font-weight: 500;
      
      .circle{
        width: 38rpx;
        height: 38rpx;
        border-radius: 38rpx;
        margin-right: 10rpx;
      }
      
      .template-title{
        font-size: 24rpx;
        font-weight: 500;
      }
    }
    
    .template-item{
      position: relative;
      padding: 30rpx 40rpx;
      font-size: 24rpx;
      color: #999;
      cursor: pointer;
      border-bottom: 1px solid #f3f3f3;
      
      &:last-child{
        border-bottom: none;
      }
      
      &:nth-child(odd){
        background: #fafafa;
      }
      
      .keyword{
        color: #71CBFF;
        text-decoration: underline;
      }
    }
  }
}